package com.netrust.quarz.hw;

import java.util.HashMap;

public class NodeConfig
{
    //OC服务器IP地址
    private String ocip;
    
    //OC服务器端口，默认63234
    private String port;
    
    //证书信息，用于单/双向验证证书
    private HashMap<String, String> certificate;
    
    //本机IP地址，通过vpn访问则为虚拟IP
    private String hostIP;
    
    public NodeConfig() {
		super();
	}

	public NodeConfig(String ocip, String port, HashMap<String, String> certificate, String hostIP) {
		super();
		this.ocip = ocip;
		this.port = port;
		this.certificate = certificate;
		this.hostIP = hostIP;
	}

	public String getOCIp()
    {
        return ocip;
    }
    
    public void setOCIp(String ocip)
    {
        this.ocip = ocip;
    }
    
    public String getPort()
    {
        return port;
    }
    
    public void setPort(String port)
    {
        this.port = port;
    }
    
    public HashMap<String, String> getCertificate()
    {
        return certificate;
    }
    
    public void setCertificate(HashMap<String, String> certificate)
    {
        this.certificate = certificate;
    }
    
    public String getHostIP()
    {
        return hostIP;
    }
    
    public void setHostIP(String hostIP)
    {
        this.hostIP = hostIP;
    }

	@Override
	public String toString() {
		return "NodeConfig [ocip=" + ocip + ", port=" + port + ", certificate=" + certificate + ", hostIP=" + hostIP
				+ "]";
	}
    
}
